package com.software.form.shippmentinfo.dao;

import java.util.List;

public class ShippmentInfoTransaction {
	private ShippmentInfoDao shippmentInfoDao;

	public ShippmentInfoDao getShippmentInfoDao() {
		return shippmentInfoDao;
	}

	public void setShippmentInfoDao(ShippmentInfoDao shippmentInfoDao) {
		this.shippmentInfoDao = shippmentInfoDao;
	}

	public boolean add(String agentEmail,String info,String bookingNo){
		ShippmentInfo si = new ShippmentInfo();
		si.setAgentEmail(agentEmail);
		si.setInfo(info);
		si.setBookingNo(bookingNo);
		return shippmentInfoDao.add(si);
	}
	
	public List<ShippmentInfo> getShippmentInfos(String email){
		return shippmentInfoDao.queryByEmail(email);
	}
}
